package com.yang.biz.modular.post.task;

import com.yang.common.timer.CommonTimerTaskRunner;
import com.yang.biz.modular.post.service.InstrumentService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author: yangjianzhi
 * @version1.0
 */
@Component
public class PostInstrumentDataTaskRunner implements CommonTimerTaskRunner {

    @Resource
    private InstrumentService instrumentService;

    @Override
    public void action() {
        try {
            instrumentService.postInstrumentData();
        } catch (Exception ignored) {
        }
    }
}
